Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build.rs #110

Merged
merged 1 commit into from
Aug 20, 2023
Merged

Fix build.rs #110

merged 1 commit into from
Aug 20, 2023

Conversation

rukai
Copy link
Contributor

@rukai rukai commented Aug 14, 2023

I described here that build.rs will always trigger a rebuild on the second build (but then settle after that) #105 (comment) and this PR fixes that issue.

The fix is just to remove the line println!("cargo:rerun-if-changed={}", default_precision_rs_path.display());
This line doesnt make any sense because the path is an output not an input.
We only want to rebuild if our inputs change not our outputs.

The line was originally introduced here: b35a851
And then a workaround that missed the root cause was introduced here: https://github.com/akubera/bigdecimal-rs/pull/106/files

I also cleaned up the whole thing because it was way more complicated than it needed to be.

@codecov-commenter
Copy link

Codecov Report

Merging #110 (12860dd) into trunk (6e3c04a) will not change coverage.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##            trunk     #110   +/-   ##
=======================================
  Coverage   76.86%   76.86%           
=======================================
  Files          11       11           
  Lines        2027     2027           
  Branches     2027     2027           
=======================================
  Hits         1558     1558           
  Misses         86       86           
  Partials      383      383           

@rukai
Copy link
Contributor Author

rukai commented Aug 16, 2023

did you rewrite history?
This merge conflict makes no sense.

@rukai
Copy link
Contributor Author

rukai commented Aug 16, 2023

I fixed it somehow.

@akubera akubera merged commit 1a5b6c0 into akubera:trunk Aug 20, 2023
@akubera
Copy link
Owner

akubera commented Aug 20, 2023

This looks good. Thanks.

@rukai rukai mentioned this pull request Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants